package com.lkx.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * ClassName: ImageConfig
 * Function:
 * Date:      2018-11-01 14:05
 * author     likaixuan
 * version    V1.0
 */

@Component
@ConfigurationProperties(prefix="file")
public class ImageConfig {

    //上传路径
    private String uploadPath;

    //图片预览前缀
    private String prefix;

    public String getUploadPath() {
        return uploadPath;
    }

    public void setUploadPath(String uploadPath) {
        this.uploadPath = uploadPath;
    }

    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }
}
